﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ZSZK._Default" ValidateRequest="false" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>快捷改价</title>
    <link rel="shortcut icon" href="/ksgj/img/favicon.ico" />
<%--    <link href="/ksgj/clientCss/index.css" rel="stylesheet" type="text/css" />
    <script src="/ksgj/Scripts/jquery.js" type="text/javascript"></script>
    <script src="/ksgj/Scripts/jquery.loadthumb.js" type="text/javascript"></script>    --%>
    <link href="/clientCss/index.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.loadthumb.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var popupStatus = 0;
        $(document).ready(function () {
            $("#helpcont2").show();
            resizeImg();
            onloadfun();
            opendialog();
            delovertag();
        });

        function resizeImg () {
            var imgcount = $(".imgdiv img").length;
            for (var i = 0; i < imgcount; i++) {
                $($(".imgdiv img")[i]).loadthumb({
                    "src": $(".imgdiv img")[i].src,
                    "imgId": $(".imgdiv img")[i].id,
                    "parentId": $($(".imgdiv img")[i]).parent()[0].id
                });
            }
        }

        function onloadfun() {
            $("#AspNetPager > a[disabled]").addClass("disabledcss");
            $(document).click(function (e) {
                $("#diglog").fadeOut("fast");
                $("#copyurldiv").fadeOut("fast");
            });
            $("#diglog").click(function (e) {
                e.stopPropagation();
            });

            $("#helplink").click(function () {
                $("#wrapper").hide();
                $("#subUserdiv").hide();
                $("#helpdiv").show();
                $(".active").removeClass("active");
                $(this).parent().addClass("active");
            });
            $("#subuser").click(function () {
                $("#wrapper").hide();
                $("#helpdiv").hide();
                $("#subUserdiv").show();
                $(".active").removeClass("active");
                $(this).parent().addClass("active");
            });
            $("#mainpage").click(function () {
                $("#helpdiv").hide();
                $("#subUserdiv").hide();
                $("#wrapper").show();
                $(".active").removeClass("active");
                $(this).parent().addClass("active");
            });
            $("#chatter").change(function () {
                $("#priceto").val($(this).val());
            });
            $("#changeprice").keyup(function () {
                $("#newprice").text(accSubtr($("#oldprice").text(), $(this).val()));
            });
            $("#copyurl").click(function () {
                $("#copyurldiv").css({
                    "position": "absolute",
                    "top": 40,
                    "left": 80
                });
                var goodnid = $("#goodnumid").val();
                $.ajax({
                    type: "post",
                    url: "/AjaxCommand/getgoodurl.ashx",
                    data: {
                        goodid: goodnid
                    },
                    beforeSend: function (XMLHttpRequest) {
                    },
                    success: function (data, textStatus, jqXHR) {
                        $("#urltext").val(data);
                        $("#copyurldiv").fadeIn("fast");
                    },
                    complete: function (XMLHttpRequest, textStatus) {
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        // 通常 textStatus 和 errorThrown 之中
                        // 只有一个会包含信息
                        //alert(XMLHttpRequest); // 调用本次AJAX请求时传递的options参数
                        alert("dd");
                    }
                });
            });
            $("#gaijiabtn").click(function () {
                var goodnid = $("#goodnumid").val();
                var pricetobody = $("#priceto").val();
                var gaijiaprice = $("#changeprice").val();
                var priceovertime = $("#overtime").val();
                var newprice = $("#newprice").text();
                var re = /^[1-9]+[0-9]*]*$/;
                if (goodnid == "") {
                    alert("请选择宝贝!");
                    return;
                }
                if (pricetobody == "") {
                    alert("请选择或填写改价对象!");
                    return;
                }
                if (newprice < 0) {
                    alert("优惠价格不能大于原价!");
                    return;
                }
                else if (newprice == "NaN") {
                    alert("优惠价格只能填写数字!");
                    return;
                }
                else if (newprice == "" || gaijiaprice == "") {
                    alert("请输入修改价格!");
                    return;
                }
                if (priceovertime == "") {
                    alert("请输入过期时间!");
                    return;
                }
                if (!re.test(priceovertime)) {
                    alert("过期时间只能输入以分钟为单位的整数!");
                    return;
                }
                if (priceovertime > 30) {
                    alert("过期时间不能大于30分钟!");
                    return;
                }
                $.ajax({
                    type: "post",
                    url: "/AjaxCommand/setPriceQuick.ashx",
                    data: {
                        price: gaijiaprice,
                        changeto: pricetobody,
                        goodid: goodnid,
                        overtime: priceovertime
                    },
                    beforeSend: function (XMLHttpRequest) {
                        $("#gaijiabtn").hide();
                        $("#gaijiabtn").next().show();
                    },
                    success: function (data, textStatus, jqXHR) {
                        if (data == "ok") {
                            alert("改价成功!");
                        }
                        else {
                            alert(data);
                        }
                    },
                    complete: function (XMLHttpRequest, textStatus) {
                        $("#gaijiabtn").next().hide();
                        $("#gaijiabtn").show();
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        // 通常 textStatus 和 errorThrown 之中
                        // 只有一个会包含信息
                        //alert(XMLHttpRequest); // 调用本次AJAX请求时传递的options参数
                        alert("改价失败，请稍后再试！");
                    }
                });
            });
        }

        function delsubuser(subname, obj) {
            if (confirm("确定要删除子账号:" + subname + "?") == false) {
                return false;
            }
            else {
                var tdparent = $(obj).parent();
                $(obj).hide();
                $(obj).prev().hide();
                tdparent.append("<span>处理中...</span>");
            }
        }
        function editsubuser(obj) {
            var money = $(obj).parent().prev().children().eq(0).val();
            if (money == "") {
                alert("请填写最大修改金额!");
                return false;
            }
            else if (money <= 0) {
                alert("最大修改金额不能小于或等于0!");
                return false;
            }
            else {
                $(obj).hide();
                $(obj).next().hide();
                $(obj).parent().append("<span>处理中...</span>");
            }
        }

        function checknewsub(obj) {
            var money = $(obj).parent().prev().children().eq(0).val();
            var subuser = $(obj).parent().prev().prev().children().eq(0).val();
            var r = /^\+?[1-9][0-9]*$/; //正整数   
            if (money == "" || subuser == "") {
                alert("子账号信息不完整!");
                return false;
            }
            else if (!r.test(money)) {
                alert("最大修改金额只能输入正整数!");
                return false;
            }
            else if(money <= 0) {
                alert("最大修改金额不能小于或等于0!");
                return false;
            }
            else {
                $(obj).hide();
                $(obj).parent().append("<span>处理中...</span>");
            }
        }
        function delovertag() {
            $("#deleteovertag").click(function () {
                $.ajax({
                    type: "post",
                    url: "/AjaxCommand/clearAlltag.ashx",
                    beforeSend: function (XMLHttpRequest) {
                        showmark();
                    },
                    success: function (data, textStatus, jqXHR) {
                        alert(data);
                    },
                    complete: function (XMLHttpRequest, textStatus) {
                        $("#backgroundPopup").fadeOut("fast");
                        $("#popupContact").fadeOut("fast");
                        $("#loadimg").hide();
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        // 通常 textStatus 和 errorThrown 之中
                        // 只有一个会包含信息
                        //alert(XMLHttpRequest); // 调用本次AJAX请求时传递的options参数
                        alert("清除失败，请稍后再试!");
                    }
                });
            });
        }

        function showmark() {
            var windowHeight = document.documentElement.clientHeight;
            var windowWidth = document.documentElement.clientWidth;
            var popupHeight = $("#popupContact").height();
            var popupWidth = $("#popupContact").width();
            //centering
            $("#popupContact").css({
                "position": "absolute",
                "top": windowHeight / 2 - popupHeight / 2,
                "left": windowWidth / 2 - popupWidth / 2
            });
            //only need force for IE6
            $("#backgroundPopup").css({
                "opacity": "0.7"
            });
            $("#backgroundPopup").css({
                "height": windowHeight
            });
            $("#backgroundPopup").fadeIn("fast");
            $("#popupContact").fadeIn("fast");
            $("#loadimg").show();
        }

        function accSubtr(arg1, arg2) {
            var r1, r2, m, n;
            try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 }
            try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 }
            m = Math.pow(10, Math.max(r1, r2));
            //动态控制精度长度
            n = (r1 >= r2) ? r1 : r2;
            return ((arg1 * m - arg2 * m) / m).toFixed(n);
        }

        function opendialog() {
            $(".btngaijia").click(function (e) {
                e.stopPropagation();
                var top;
                var eventobj = $(this);
                //top = $(this).offset().top - 75;
                //var left = $(this).offset().left;
                if (($(this).offset().top + 302) >= $(document).height()) {
                    top = $(this).offset().top - 735;
                }
                else {
                    top = $(this).offset().top - 110;
                }
                $("#copyurldiv").fadeOut("fast");
                $("#diglog").fadeOut("fast", function () {
                    $("#priceimgdiv img").loadthumb({
                        "src": eventobj.parent().parent().children(".imgdiv").children("img").attr("src"),
                        "imgId": "priceimg",
                        "parentId": "priceimgdiv"
                    });
                    $("#goodname").html(eventobj.parent().parent().children(".goodtitle").children("input:hidden").val());
                    $("#oldprice").text(eventobj.parent().parent().children(".goodprice").children("span").text());
                    $("#goodnumid").val(eventobj.parent().parent().children(".imgdiv").children("img").attr("id"));
                    
                    $(this).css("top", top);
                    $(this).css("left", -1);
                    $(this).fadeIn("fast", function () {
                        $("#changeprice").val("");
                        $("#newprice").text("");
                    });
                });
            })
        }

        function closeurl()
        {
            $("#copyurldiv").fadeOut("fast");
        }

//        function downloadsublink(subnick, subindex) {
//            debugger;
//            var WshShell = new ActiveXObject("WScript.Shell");
//            var url = "http://lucky.myrice.com";
//            var title = "【孟宪会之精彩世界】";
//            //WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", url);
//            var FavoritesPath = WshShell.SpecialFolders("Favorites");
//            var oUrlLink = WshShell.CreateShortcut(FavoritesPath + '\\' + title + ".lnk");
//            oUrlLink.TargetPath = url;
//            oUrlLink.Save();
//            var DesktopPath = WshShell.SpecialFolders("Desktop");
//            var MyShortcut = WshShell.CreateShortcut(DesktopPath + '\\' + title + "的快捷方式.lnk");
//            MyShortcut.TargetPath = url;
//            MyShortcut.WindowStyle = 1;
//            MyShortcut.IconLocation = WshShell.ExpandEnvironmentStrings("%windir%\\SYSTEM\\SHELL32.DLL,46"); ;
//            MyShortcut.Save();  
////            $.ajax({
////                type: "post",
////                url: "/AjaxCommand/subShortcut.ashx",
////                data: {
////                    subname: subnick,
////                    loginsubindex: subindex
////                },
////                beforeSend: function (XMLHttpRequest) {

////                },
////                success: function (data, textStatus, jqXHR) {
////                    if (data == "ok") {
////                        alert("桌面图标生成成功");
////                    }
////                    else {
////                        alert(data);
////                    }
////                },
////                complete: function (XMLHttpRequest, textStatus) {
////                    return false;
////                },
////                error: function (XMLHttpRequest, textStatus, errorThrown) {
////                    alert("桌面图标生成失败，请重试!");
////                }
////            });
//        }

        function helplink(index,obj) {
            switch (index) {
                case 1:
                    $("#helpcont2").show();
                    $("#helpcont3").hide();
                    $("#helpcont4").hide();
                    $("#helpcont5").hide();
                    $("#helpcont6").hide();
                    break;
                case 2:
                    $("#helpcont3").show();
                    $("#helpcont2").hide();
                    $("#helpcont4").hide();
                    $("#helpcont5").hide();
                    $("#helpcont6").hide();
                    break;
                case 3:
                    $("#helpcont4").show();
                    $("#helpcont2").hide();
                    $("#helpcont3").hide();
                    $("#helpcont5").hide();
                    $("#helpcont6").hide();
                    break;
                case 4:
                    $("#helpcont5").show();
                    $("#helpcont2").hide();
                    $("#helpcont3").hide();
                    $("#helpcont4").hide();
                    $("#helpcont6").hide();
                    break;
                case 5:
                    $("#helpcont6").show();
                    $("#helpcont2").hide();
                    $("#helpcont3").hide();
                    $("#helpcont4").hide();
                    $("#helpcont5").hide();
                    break;
                default:

            }
            $(".helplink").toggleClass("helplink");
            $(obj).toggleClass("helplink");
            return false;
        }
    </script>
</head>
<body>
    <form runat="server" id="mainform">
    <asp:HiddenField ID="deadline" runat="server" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="container" class="clearfix">
        <div id="header">
        	<h2><img src="img/LogoMaker.png" alt="" /></h2>
            <div id="menu_wrapper" class="blue">
		        <div class="left"></div>
			    <ul id="menu">
				    <li class="active"><a href="javascript:return false;" id="mainpage">快速改价</a></li>
				    <li><a href="javascript:return false" id="subuser">子账户设置</a></li>
				    <li><a href="javascript:return false" id="helplink">帮助中心</a></li>
			    </ul>
		    </div>
        </div>
        <div id="wrapper" class="clearfix">
            <div id="content" class="clearfix">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div id="catelistdiv">
                            <div class="catetitle">
                                <h3>店铺类目</h3>
                            </div>
                            <asp:TreeView ID="cateTree" runat="server" NodeIndent="8" NodeWrap="True" 
                                SkipLinkText="" onselectednodechanged="cateTree_SelectedNodeChanged">
                                <HoverNodeStyle Font-Underline="False" />
                                <NodeStyle Font-Names="Tahoma" Font-Size="12px" ForeColor="#375B91" 
                                    NodeSpacing="0px" VerticalPadding="0px" />
                                <ParentNodeStyle Font-Bold="False" />
                                <SelectedNodeStyle Font-Underline="False" ForeColor="White" 
                                    HorizontalPadding="0px" VerticalPadding="0px" BackColor="#375B91" />
                            </asp:TreeView>
                        </div>
                        <div id="goodlistdiv">
                            <div id="diglog">
                                <div id="copyurldiv" class="popupContact">
		                            <h1>复制宝贝链接</h1>
                                    <input type="text" style="width:98%" id="urltext" />
                                    <a href="javascript:;" onclick="closeurl()" style="margin-top:8px;display:block">[关闭]</a>
	                            </div>
                                <div id="priceimgdiv" class="priceimgdiv">
                                    <img id="priceimg" style="display:none;" />
                                </div>
                                <div id="pricemsg" class="pricemsg">
                                    
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tr>
                                            <td colspan="2">
                                                <asp:Label ID="goodname" runat="server" Text="" Width="100%"></asp:Label>
                                                <input id="goodnumid" type="hidden" value="" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:100px;">
                                                <span>选择改价对象</span>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="chatter" runat="server" Width="160px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:100px;">
                                                <span>填写改价对象</span>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="priceto" runat="server"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:100px;">
                                                <span>宝贝价格</span>
                                            </td>
                                            <td>
                                                <asp:Label ID="oldprice" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:100px;">
                                                <span>优惠价格</span>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="changeprice" runat="server"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:100px;">
                                                <span>改后价格</span>
                                            </td>
                                            <td>
                                                <asp:Label ID="newprice" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width:100px;">
                                                <span>过期时间</span>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="overtime" runat="server" Width="100px" Text="10"></asp:TextBox>分钟后过期
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <div>
                                                    <a href="javascript:return false;" id="gaijiabtn" class="gaijiabtn">确定</a>
                                                    <span style="float:left;width:120px;display:none;">处理中，请稍后...</span>
                                                    <a href="javascript:return false;" id="copyurl" class="gaijiabtn">复制链接</a>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="catetitle" style="text-align:left;padding:0 5px;">
                                <h3 style="display:inline;margin-right:150px;">宝贝列表</h3>
                                <asp:TextBox ID="keyword" runat="server" Width="300px" MaxLength="40"></asp:TextBox>
                                <asp:LinkButton ID="search" runat="server" onclick="search_Click">搜索</asp:LinkButton>
                            </div>
                            <asp:DataList ID="goodlist" runat="server" RepeatColumns="3" 
                                RepeatDirection="Horizontal" Width="100%">
                                <ItemTemplate>
                                    <div class="mainlist">
                                        <div class="goodtitle">
                                            <strong><%# Eval("title")%></strong>
                                            <asp:HiddenField ID="Hiddentitle" runat="server" Value='<%# Eval("title") %>' />
                                        </div>
                                        <div class="imgdiv" id="imgdiv<%# Eval("numiid") %>">
                                            <img id="<%# Eval("numiid") %>" src="<%# Eval("picurl") %>" alt="" style="display:none" />
                                        </div>
                                        <div class="goodprice">
                                            价格:￥<span><%# Eval("price")%></span></div>
                                        <div>
                                            <a href="javascript:;" class="btngaijia">快速改价</a>
                                        </div>
                                    </div>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:Label ID="footlabel" runat="server" Text="此类目没有宝贝！" CssClass="nocount" Visible='<%# goodlist.Items.Count == 0 %>'></asp:Label>
                                </FooterTemplate>
                            </asp:DataList>
                            <webdiyer:aspnetpager id="AspNetPager" runat="server" HorizontalAlign="Center"
                    Width="100%" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="Left" 
                    Direction="LeftToRight" FirstPageText="首页" LastPageText="尾页" LayoutType="Div" 
                    NextPageText="下一页" PageIndexBoxType="TextBox" PrevPageText="上一页" 
                    ShowPageIndexBox="Never" PageSize="12" ShowNavigationToolTip="True" 
                    EnableTheming="False" NumericButtonCount="6" 
                        CssClass="pagercss" CurrentPageButtonPosition="Center" UrlPageIndexName="currpage" 
                        Wrap="False" CurrentPageButtonClass="currentpage" UrlPaging="False" 
                                onpagechanged="AspNetPager_PageChanged"></webdiyer:aspnetpager>
                        </div>
                        
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="cateTree" 
                            EventName="SelectedNodeChanged" />
                        <asp:AsyncPostBackTrigger ControlID="AspNetPager" EventName="PageChanged" />
                        <asp:AsyncPostBackTrigger ControlID="search" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
                
            </div>
            <div id="sidebar">
                <div id="sidetitle" class="catetitle">
                    <h3>客服中心</h3>
                </div>
                <div style="padding:0 5px;">
                    <h5>您好,<%= Session["usNick"] %></h5>
                    <div style="border-bottom:1px dashed #375b91">
                        <span>使用中如有问题，您可以：</span>
                    </div>
                    <div>
                        客服旺旺:&nbsp;<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=%E6%AD%A6%E6%B1%89%E5%8D%93%E5%A4%A9%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&site=cntaobao&s=1&charset=utf-8" ><img border="0" style="vertical-align:middle;" src="http://amos.im.alisoft.com/online.aw?v=2&uid=%E6%AD%A6%E6%B1%89%E5%8D%93%E5%A4%A9%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&site=cntaobao&s=1&charset=utf-8" alt="有问必答" /></a>
                    </div>
                    <div>
                        客服邮箱:&nbsp;<span>ex_sky@163.com</span>
                    </div>
                    <div>
                        客服电话:&nbsp;<span>027-82420526</span>
                    </div>
                    <div style="border-bottom:1px dashed #375b91">
                        客服电话:&nbsp;<span>18971460801</span>
                    </div>
                    <div>
                        您还可以在我们的帮派中提问
                    </div>
                    <div>
                        <a href="http://bangpai.taobao.com/group/14509393.htm" target="_blank">进入帮派</a>
                    </div>
                    <div>
                        <a href="http://bangpai.taobao.com/group/thread/14509393-263698302.htm" target="_blank">快捷改价V2.5更新说明</a>
                    </div>
                    <div>
                        <a href="/AjaxCommand/setShortcut.ashx">[设为桌面图标]</a>
                    </div>
                    <div>
                        <a href="javascript:;" id="deleteovertag">[清除过期人群]</a>
                    </div>
                </div>
            </div>
        </div>
        <div id="helpdiv">
            <div class="catetitle">
                <h3>帮助中心</h3>
            </div>
            <div id="helpcont" class="clearfix">
                <div id="helpcont1">
                    <ul>
                        <li><a href="javascript:viod(0)" onclick="helplink(1,this)" class="helplink">功能简介</a></li>
                        <li><a href="javascript:viod(0)" onclick="helplink(2,this)">改价步骤</a></li>
                        <li><a href="javascript:viod(0)" onclick="helplink(3,this)">改价结果</a></li>
                        <li><a href="javascript:viod(0)" onclick="helplink(4,this)">子账号设置</a></li>
                        <li><a href="javascript:viod(0)" onclick="helplink(5,this)">子账号登陆</a></li>
                    </ul>
                </div>
                <div id="helpcont2" class="helpconts">
                    <h2>功能简介</h2>
                    <p>本工具可以让您不必在买家拍下商品后再来改变价格，可以在改变价格后让买家直接拍下，而且改变后的价格只对您所指定的买家生效。
                    本工具并不是直接修改宝贝的出售价格，而是使用淘宝API中的定向优惠功能，针对单个买家修改购买的实际价格，所以您不必担心修改后的宝贝价格会影响到其他的买家</p>
                    <h2>快捷改价界面介绍</h2>
                    <img src="helpimg/kjimg7.png" alt="" />
                    <dl>
                        <dt>A.商品类目区：</dt>
                        <dd>此处会显示您店铺里面的所有分类，以方便您选择相关商品。</dd>
                        <dt>B.商品陈列区：</dt>
                        <dd>当点击了商品类目后，这里会显示该商品类目下的所有商品，以供您选择。</dd>
                        <dt>C.客服区：</dt>
                        <dd>如果您在使用中遇到问题，您可以选择此处的方式与我们联系，我们会为您解答。</dd>
                    </dl>
                </div>
                <div id="helpcont3" class="helpconts">
                    <h2>快捷改价操作步骤</h2>
                    <dl>
                        <dt>第一步：在商品类目列表中选择需要改价商品的类目</dt>
                        <dd><img src="helpimg/kjimg1.png" alt="" /></dd>
                        <dt>第二步：选择需要改价商品</dt>
                        <dd><img src="helpimg/kjimg2.png" alt="" /></dd>
                        <dt>第三步：填写改价信息确认无误后点击[确定]提交</dt>
                        <dd><img src="helpimg/kjimg3.png" alt="" /></dd>
                    </dl>
                    <h2>简单3步为您迅速修改宝贝价格</h2>
                </div>
                <div id="helpcont4" class="helpconts">
                    <h2>改价结果</h2>
                    <p>改价成功后，买家将在购买页面看到如下图所示的结果。</p>
                    <img src="helpimg/kjimg8.png" alt="" />
                </div>
                <div id="helpcont5" class="helpconts">
                    <h2>子账号设置</h2>
                    <dl>
                        <dt>第一步：选择您允许改价的子账户，子账户的下拉列表中将列出您主账户下的所有子账户。</dt>
                        <dd><img src="helpimg/kjimg10.png" alt="" /></dd>
                        <dt>第二步：填写允许子账户能够修改的最大金额，为了您的宝贝安全请您务必设置该金额。</dt>
                        <dd><img src="helpimg/kjimg11.png" alt="" /></dd>
                        <dt>第三步：确认无误后点击[确定]提交</dt>
                        <dd><img src="helpimg/kjimg12.png" alt="" /></dd>
                    </dl>
                </div>
                <div id="helpcont6" class="helpconts">
                    <h2>子账号登陆</h2>
                    <dl>
                        <dt>点击每个子账号后的专有链接，保存子账号的登陆链接</dt>
                        <dd><img src="helpimg/kjimg13.png" alt="" /></dd>
                        <dt>双击下载的子账号登陆链接即可登陆</dt>
                        <dt>每个子账号的登陆链接都不同，请区分开。不同的子账号请使用专有的链接。</dt>
                    </dl>
                </div>
            </div>
        </div>
        <div id="subUserdiv">
            <div class="catetitle">
                <h3>子账号设置</h3>
            </div>
            <div id="usercontent">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <table id="subusertable" cellpadding="0" cellspacing="0">
                            <thead>
                                <tr>
                                    <td align="center" valign="middle" style="width:80px;">序号</td>
                                    <td align="center" valign="middle" style="width:240px;">子账号</td>
                                    <td align="center" valign="middle" style="width:140px;">最大修改金额</td>
                                    <td align="center" valign="middle" style="width:100px;">操作</td>
                                    <td align="center" valign="middle" style="width:100px;">专用链接</td>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="subusercontrol" runat="server" 
                                    onitemcommand="subusercontrol_ItemCommand" 
                                    onitemdatabound="subusercontrol_ItemDataBound">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%# Container.ItemIndex + 1 %>
                                            </td>
                                            <td>
                                                <asp:Label ID="sublab" runat="server" Text=<%# Eval("UsNick") %>></asp:Label>
                                                <asp:Label ID="subid" runat="server" Text=<%# Eval("UsId") %> Visible="false"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="maxmoneylab" runat="server" Text=<%# Eval("maxmoney") %>></asp:Label>
                                                <asp:TextBox ID="maxmoney" runat="server" Font-Size="Larger" Width="80%" style="text-align:center;" Text=<%# Eval("maxmoney") %> Visible="false"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="editlink" runat="server" CommandName="edit" Visible="false">修改</asp:LinkButton>
                                                <asp:LinkButton ID="dellink" runat="server" CommandName="delete" Visible="false" CommandArgument=<%# Eval("UsId") %>>删除</asp:LinkButton>
                                                <asp:LinkButton ID="enterlink" runat="server" Visible="false" CommandName="enter" CommandArgument=<%# Eval("UsId") %>>确定</asp:LinkButton>
                                                <asp:LinkButton ID="cancellink" runat="server" Visible="false" CommandName="cancel">取消</asp:LinkButton>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="downloadlink" runat="server" CommandName="download" CommandArgument=<%# Eval("loginsubindex") %>>点击下载</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <tr>
                                            <td>
                                                新增子账号
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="newsubddl" runat="server" Width="80%" Font-Size="Larger">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="newmaxmoney" runat="server" Font-Size="Larger" Width="80%" style="text-align:center;" Text="" ></asp:TextBox>
                                            </td>
                                            <td colspan="2">
                                                <asp:LinkButton ID="newlink" runat="server" CommandName="new">[确定]</asp:LinkButton>  
                                            </td>
                                        </tr>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                        <asp:Label ID="subcount" runat="server" Text="" Width="100%" style="text-align:center;color:Red"></asp:Label>
                        <asp:Panel ID="Panel1" runat="server" Visible="false" HorizontalAlign="Center" style="margin:50px 0 0 0;">
                            您当前的版本还未支持子账户，您可以<a href="http://fuwu.taobao.com/serv/detail.htm?service_id=12715" target="_blank">[升级版本]</a>来支持子账户的使用。
                        </asp:Panel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="subusercontrol" EventName="ItemCommand" />
                    </Triggers>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
    <div id="popupContact" class="popupContact">
		<h1>正在清除过期优惠,请稍后...</h1>
		<p id="contactArea">
			清除时间与您宝贝数量相关，宝贝越多耗费时间越长，请耐心等候!
		</p>
        <img id="loadimg" src="img/ajax-loader.gif" alt="" style="display:none;" />
	</div>
    <div id="backgroundPopup" class="backgroundPopup"></div>
    
    </form>
</body>
</html>